# 求n的阶乘
def d(n):
    if n==1:
        return n
    else:
        return n*d(n-1)
print(d(6))